package com.example.youjingjing.menudemo.dummy;

import android.content.Context;
import android.support.v7.widget.SearchView;

/**
 * Created by youjingjing on 2017/8/1.
 */

public class MySearchView extends SearchView {
    public MySearchView(Context context) {
        super(context);
    }

    // The normal SearchView doesn't clear its search text when
    // collapsed, so we will do this for it.
    @Override
    public void onActionViewCollapsed() {
        setQuery("", false);
        super.onActionViewCollapsed();
    }
}